// 保留两位小数,不四舍五入
export const formatDecimal = (val, place = 2) => {
    const result = new Intl.NumberFormat(undefined, {
        minimumFractionDigits: place,
        maximumFractionDigits: place
    }).format(val)
    // 去掉逗号：2,500.00 > 2500.00
    const newResult = result.replace(',', '')
    return newResult
}
